<template>
	<view class="homePage">
		<view class="positioning">
			<!-- 头部功能 -->
			<view class="header">
				<view class="top">
					<image src="../../static/img/index/txl@2x.png" class="txl" @click="txl"></image>
					<image src="../../static/img/index/setUp@2x.png" class="setUp" @click="setUp"></image>
				</view>
				<view class="down">
					<navigator url="/pages/headFeatures/settings/accountInformation">
						<image :src="data && data.headPicture ? data.headPicture : '../../static/img/index/defalut_tx.png'" class="defalut"></image>
						<view class="nickname">
							<view class="name">
								<text>{{data ? data.realName : ''}}</text>
								<image src="../../static/img/index/edit@2x.png"></image>
							</view>
							<view class="call">{{data ? data.appellations : ''}}</view>
						</view>
					</navigator>
					<navigator url="/pages/index/consult" style="display: unset;flex:unset;">
						<image class="im" src="../../static/img/index/homePageIm@2x.png">
							<u-badge type="error" :count="totalUnreadCount" style="right: -20upx;top: 10upx;"></u-badge>
						</image>
					</navigator>
				</view>
			</view>		
			<!-- 我的 -->
			<view class="myself">
				<navigator url="/pages/headFeatures/member/myMember">
					<view>{{data && data.serve}}</view>
					<text>我的会员</text>
				</navigator>
				<navigator :url="'/pages/headFeatures/member/myMember?attention='+1">
					<view>{{data && data.attention}}</view>
					<text>关注我的</text>
				</navigator>
				<navigator url="/pages/headFeatures/execute/executePlan">
					<view>{{plancount}}<u-badge :is-dot="true" type="error" style="top: 2upx;right: 82upx;" v-if="plancount > 0"></u-badge></view>
					<text>今日待办</text>
				</navigator>
			</view>
		</view>
		
		<view class="mainContent">
			<!-- 快捷创建 -->
			<view class="quicklyCreate">
				<view class="navigation">
					<image src="../../static/img/index/tips@2x.png"></image>
					<text>快捷创建</text>
				</view>
				<view class="itemBox">
					<view class="item" @click="newMember">
						<image src="../../static/img/index/addMember@2x.png"></image>
						<text>新增会员<br></text>
					</view>
					<navigator url="/pages/quickly/information/information" class="item" hover-class="none">
						<image src="../../static/img/index/personInformation@2x.png"></image>
						<text>个人基本<br>信息</text>
					</navigator>
					<navigator url="/pages/quickly/assessment/investigation" class="item" hover-class="none">
						<image src="../../static/img/index/healthQuestionnaire@2x.png"></image>
						<text>健康问卷</text>
					</navigator>
					<navigator url="/pages/quickly/medicalReport/entryMedical" class="item" hover-class="none">
						<image src="../../static/img/index/enterMedical@2x.png"></image>
						<text>录入体检<br>报告</text>
					</navigator>
					<navigator url="/pages/quickly/tcm/statusQuo" class="item" hover-class="none">
						<image src="../../static/img/index/healthStatus@2x.png"></image>
						<text>健康现状<br>评估</text>
					</navigator>
					<navigator url="/pages/quickly/assessment/index" class="item" hover-class="none">
						<image src="../../static/img/index/futureDisease@2x.png"></image>
						<text>未来疾病<br>风险评估</text>
					</navigator>
					<navigator url="/pages/quickly/summary/createSummary" class="item" hover-class="none">
						<image src="../../static/img/index/statusQuo@2x.png"></image>
						<text>健康风险<br>评估汇总</text>
					</navigator>
					<navigator url="/pages/quickly/Intervention/createIntervention" class="item" hover-class="none">
						<image src="../../static/img/index/interventionPlan@2x.png"></image>
						<text>干预方案</text>
					</navigator>
					<navigator url="/pages/quickly/intervenscheme/creat" class="item" hover-class="none">
						<image src="../../static/img/index/interventionProgress@2x.png"></image>
						<text>干预计划</text>
					</navigator>
					<navigator url="/pages/quickly/follow/createFollow" class="item" hover-class="none">
						<image src="../../static/img/index/followUp@2x.png"></image>
						<text>随访记录</text>
					</navigator>
					<navigator url="/pages/quickly/referral/entryPage" class="item" hover-class="none">
						<image src="../../static/img/index/referralRecord@2x.png"></image>
						<text>转诊记录</text>
					</navigator>
				</view>
			</view>
				
			<!-- 健康监测 -->
			<view class="quicklyCreate">
				<view class="navigation">
					<image src="../../static/img/index/tips@2x.png"></image>
					<text>健康监测</text>
				</view>
				<view class="itemBox">
					<navigator url="/pages/quickly/information/list" class="item" hover-class="none">
						<image src="../../static/img/index/memberInformation@2x.png"></image>
						<text>会员基本<br>信息列表</text>
					</navigator>
					<navigator url="/pages/quickly/assessment/investigationlist"  class="item" hover-class="none">
						<image src="../../static/img/index/healthQuestionnaire@2x.png"></image>
						<text>健康问卷<br>列表</text>
					</navigator>
					<navigator url="/pages/quickly/medicalReport/list1" class="item" hover-class="none">
						<image src="../../static/img/index/medicalReport@2x.png"></image>
						<text>体检报告<br>列表</text>
					</navigator>
				</view>
			</view>
			
			<!-- 健康风险评估 -->
			<view class="quicklyCreate">
				<view class="navigation">
					<image src="../../static/img/index/tips@2x.png"></image>
					<text>健康风险评估</text>
				</view>
				<view class="itemBox">
					<view @click="applyMember" class="item" hover-class="none">
						<image src="../../static/img/index/memberEvaluation@2x.png"></image>
						<text>会员评估<br>申请</text>
					</view>
					<navigator url="/pages/quickly/tcm/list" class="item" hover-class="none">
						<image src="../../static/img/index/healthStatus@2x.png"></image>
						<text>健康现状<br>评估列表</text>
					</navigator>
					<navigator url="/pages/quickly/disease/diseaselist"  class="item" hover-class="none">
						<image src="../../static/img/index/diseaseRisk@2x.png"></image>
						<text>疾病风险<br>评估列表</text>
					</navigator>
					<navigator url="/pages/quickly/summary/list" class="item" hover-class="none">
						<image src="../../static/img/index/riskAssessment@2x.png"></image>
						<text>健康风险<br>评估列表</text>
					</navigator>
					<navigator url="/pages/quickly/accomplishment/list"  class="item" hover-class="none">
						<image src="../../static/img/index/diseaseRisk@2x.png"></image>
						<text>健康素养<br>评估列表</text>
					</navigator>
				</view>
			</view>
			
			<!-- 健康指导-->
			<view class="quicklyCreate">
				<view class="navigation">
					<image src="../../static/img/index/tips@2x.png"></image>
					<text>健康指导</text>
				</view>
				<view class="itemBox">
					<navigator url="/pages/quickly/article/articlelist" class="item" hover-class="none">
						<image src="../../static/img/index/healthScience@2x.png"></image>
						<text>健康科普<br>列表</text>
					</navigator>
					<navigator url="/pages/quickly/notice/noticelist"  class="item" hover-class="none">
						<image src="../../static/img/index/sendNotification@2x.png"></image>
						<text>发送通知<br>列表</text>
					</navigator>
				</view>
			</view>
			
			<!-- 健康危险因素干预 -->
			<view class="quicklyCreate">
				<view class="navigation">
					<image src="../../static/img/index/tips@2x.png"></image>
					<text>健康危险因素干预</text>
				</view>
				<view class="itemBox">
					<navigator  url="/pages/quickly/Intervention/list"  class="item" hover-class="none">
						<image src="../../static/img/index/interventionPlan@2x.png"></image>
						<text>干预方案<br>列表</text>
					</navigator>
					<navigator class="item" hover-class="none" url="/pages/quickly/intervenscheme/list">
						<image src="../../static/img/index/interventionProgress@2x.png"></image>
						<text>干预计划<br>列表</text>
					</navigator>
					<navigator url="/pages/quickly/follow/list" class="item" hover-class="none">
						<image src="../../static/img/index/followUp@2x.png"></image>
						<text>随访记录<br>列表</text>
					</navigator>
					<navigator url="/pages/quickly/referral/list" class="item" hover-class="none">
						<image src="../../static/img/index/referralRecord@2x.png"></image>
						<text>转诊记录<br>列表</text>
					</navigator>
				</view>
			</view>
			
			<!-- 健康风险评估 -->
			<view class="quicklyCreate">
				<view class="navigation">
					<image src="../../static/img/index/tips@2x.png"></image>
					<text>其他功能</text>
				</view>
				<view class="itemBox">
					<navigator url="/pages/quickly/apply/applylist" class="item" hover-class="none">
						<image src="../../static/img/index/memberEvaluation@2x.png"></image>
						<text>会员评估<br>申请</text>
					</navigator>
					<navigator url="/pages/quickly/healthStatus/navigation" class="item" hover-class="none">
						<image src="../../static/img/index/healthStatus@2x.png"></image>
						<text>健康现状<br>评估列表</text>
					</navigator>
					<navigator url="/pages/futureDiseases/navigation" class="item" hover-class="none">
						<image src="../../static/img/index/diseaseRisk@2x.png"></image>
						<text>疾病风险<br>评估列表</text>
					</navigator>
					<navigator class="item" hover-class="none">
						<image src="../../static/img/index/riskAssessment@2x.png"></image>
						<text>健康风险<br>评估列表</text>
					</navigator>
					<navigator url="/pages/currentSummary/list" class="item" hover-class="none">
						<image src="../../static/img/index/healthStatus@2x.png"></image>
						<text>健康现状<br>汇总</text>
					</navigator>
					<navigator url="/pages/futureSummary/list" class="item" hover-class="none">
						<image src="../../static/img/index/healthStatus@2x.png"></image>
						<text>疾病风险<br>汇总</text>
					</navigator>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script src="@/static/js/index.js"></script>

<style lang="scss">
	@import  '@/static/css/index.scss'
</style>